const defaultState = {
    records: [ ],
    
    
}

export const AttachReducer = (state = defaultState, action) => {
    let { type, payload } = action;
    switch (type) {
        case 'ATTACH_LIST':
            return { ...state, records: payload }
        default:
            return { ...state }
    }
}